FROM zhilink/ubuntu:14.04.1_v01


RUN apt-get  update -y \

    && apt-get  install -y wget  g++ gcc make \
    && wget https://nodejs.org/dist/v4.5.0/node-v4.5.0.tar.gz \
    && tar xf node-v4.5.0.tar.gz && rm -rf node-v4.5.0.tar.gz \
    && cd  node-v4.5.0 \
    && ./configure  --prefix=/usr/local/node  && make && make  install \
    && cd ../ && rm -rf  node-v4.5.0* 
    
ENV PATH=$PATH:/usr/local/node/bin

RUN  cp  /usr/share/zoneinfo/Asia/Shanghai   /etc/localtime 

RUN npm install cnpm -g \
    && npm  install pm2 -g 
